class PointOfInterest < ActiveRecord::Base
  validates_presence_of :name
  validates_numericality_of :latitude, :longitude
  validates_inclusion_of :latitude, :in => -90..90, :message => 'needs to be between -90 and 90'
  validates_inclusion_of :longitude, :in => -180..180, :message => 'needs to be between -180 and 180'
end
